<?php
/**
 * DESC:
 * 作者:晨光
 * EMAIL:461718846@qq.com
 * DATE:2020/5/16
 */

namespace app\common\model;


use think\Model;

class Goods extends Model
{
    /**
     * 分类表
     */
    public function cate(){
        return $this->belongsToMany('goodsCate','GoodsCateRelated');
    }
    /**
     * 关联分类表
     */
    public function cateRelated(){
        return $this->hasMany('GoodsCateRelated');
    }

    public function goodsFormat(){
        return $this->hasMany('GoodsFormat');
    }
}
